import request from '@/utils/request'

export function getAllActionTherbligsTypes(param) {
  return request({
    url: '/mes-action-therbligs-type/GetAllActionTherbligsTypes',
    method: 'get',
    params: param
  })
}

export function getTherbligsType(param) {
  return request({
    url: '/mes-action-therbligs-type/GetActionTherbligsType',
    method: 'get',
    params: param
  })
}

export function createTherbligsType(param) {
  return request({
    url: '/mes-action-therbligs-type/SaveActionTherbligsType',
    method: 'post',
    data: param
  })
}

export function updateTherbligsType(param) {
  return request({
    url: '/mes-action-therbligs-type/SaveActionTherbligsType',
    method: 'post',
    data:param
  })
}

export function deleteTherbligsType(param) {
  let url ='/mes-action-therbligs-type/DeleteActionTherbligsType/' + param
  return request({
    url: url,
    method: 'delete'
  })
}

export function deleteTherbligsTypes(param) {
  let url ='/mes-action-therbligs-type/DeleteActionTherbligsTypes'
    return request({
    url: url,
    method: 'delete',
    data: param
  })
}

